try:
    from django.utils.deprecation import MiddlewareMixin
except Exception:
    MiddlewareMixin = object



class LoginRequiredMiddleware(MiddlewareMixin):
    def process_request(self, request):
        from blueapps.account.models import User

        user = User.objects.get(pk=2)
        request.user = user
